import React from "react";
import { Link, Outlet } from "react-router-dom";

export default function Home() {
  return (
    <div>
      <h1>Home</h1>

      <Link to="/home/hello">去 Hello</Link>
      <br />
      <br />
      <Link to="/home/world">去 World</Link>
      <br />
      <br />
      <br />
      <br />

      {/* 这里要展示二级, 需要放个坑 Outlet Router-view */}
      {/* <h2>一个坑</h2> */}
      <Outlet />

      {/* <h2>一个坑</h2>
      <Outlet /> */}
    </div>
  );
}
